package cn.onlineclass.vo;

import java.io.Serializable;

/**
 code：是否正确的状态码
 msg：消息，
 data：数据,
 page,:当前页号
 limit,：当前页大小
 count：总数}
 */
public class AjaxPage extends AjaxResult implements Serializable {
    private long count;
    private int limit=10;
    private int page=1;

    public AjaxPage(){
    }

    public AjaxPage(int code, String msg, Object data, long count, int limit, int page) {
        super(code, msg, data);
        this.count = count;
        this.limit = limit;
        this.page = page;
    }
    public AjaxPage(Object data, long count, int limit, int page) {
        super(0, null, data);
        this.count = count;
        this.limit = limit;
        this.page = page;
    }
    public AjaxPage(int code,String msg) {
        super(code, msg, null);
    }
    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }
}
